import axios from '@/utils/request'

//请求目录信息
export async function getDirsInfo(){
    let getDirsInfo = await axios.get('/index/dirs/getDirsInfo')
    return getDirsInfo
}

//新增、编辑、删除目录
export async function editDirInfo(type,form){
    let data = {
        submitType:type,
        submitForm:form
    }   
    let newDirs = await axios.post('/index/dirs/editDirInfo',
        data
        /*,
        {
            headers:{ 'Content-Type': 'application/json' }
        }   */     
    )
    return newDirs
}